package com.example.address_api;


import com.example.address_model.entity.AddressBook;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(
        name = "take-out-address",
        contextId = "take-out-address"
)
@Component
public interface AddressClient {
    @GetMapping("/addressBookApi/id")
    AddressBook getById(@RequestParam("id") String id);
}
